<template>
    <h3>componentA</h3>
    <ComponentB :title="title" :age="age" />
</template>
<script>
import ComponentB from "@/ComponmentB.vue"

export default{
  components: { ComponentB },
    data() {
        return {
            title:"A标题",
            age:12,
            names:["demo111","demo332"]
        }
    },
}
</script>